def get_param(request,key,default = None):
    if request.method=='GET':
        value = request.GET.get(key)
    else:
        value = request.POST.get(key)
    if(not value):
        value = default
    return value    